package com.ugoodtech.mdcc.web.dto;


import com.ugoodtech.mdcc.core.QuestionConstants;
import com.ugoodtech.mdcc.core.domain.QuestionAnswerOption;
import com.ugoodtech.mdcc.core.utils.StatusUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * Copyright © 2013 All Rights Reserved, Ugood Technology, Inc.
 */
@ApiModel("选项")
public class QuestionAnswerOptionResponse {
    @ApiModelProperty("编号")
    private Long optionId;
    @ApiModelProperty("选项文字")
    private String title;
    @ApiModelProperty("是否允许填空")
    private String addText;
    @ApiModelProperty("结果")
    private String result;
    @ApiModelProperty("建议")
    private String suggest;


    public QuestionAnswerOptionResponse(QuestionAnswerOption questionAnswerOption) {
        this.optionId=questionAnswerOption.getId();
        this.title=questionAnswerOption.getName();
        this.addText=StatusUtil.getStatusStr(questionAnswerOption.isAddText(),QuestionConstants.ADD_TEXT,QuestionConstants.NOT_ADD_TEXT);
        this.result= questionAnswerOption.getExtra();
        this.suggest=questionAnswerOption.getDescription();
    }

    public Long getOptionId() {
        return optionId;
    }

    public void setOptionId(Long optionId) {
        this.optionId = optionId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAddText() {
        return addText;
    }

    public void setAddText(String addText) {
        this.addText = addText;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getSuggest() {
        return suggest;
    }

    public void setSuggest(String suggest) {
        this.suggest = suggest;
    }

}
